<#include "/included/view_meta_global.ftl">
<body>
<script>
function signInCheck(){
	if(!$("#email")[0].value){
		$("#warnMessage")[0].innerHTML="Email is required";
		return false;
	}else if(!$("#password")[0].value){
		$("#warnMessage")[0].innerHTML="Password is required";
		return false;
	}else if(emailCheck($("#email")[0])== false){
		$("#warnMessage")[0].innerHTML="Email has wrong format";
		return false;
	}else{
		$("#login").attr("value","loading").attr("disabled","disabled");
		return true;
	}
}
$(document).ready(function(){
	$("#email").focus();
})
</script>
<div id="maxw">
<#include "/included/header_global.ftl">

<div id="leftpart">
<h1>登录代码丛林</h1>
<form action="/codebush/support/signin" onSubmit="return signInCheck();" method="post" name="loginform"  id="loginform">
	<div class="warnMessage" id="warnMessage">${warnMessage?if_exists}</div>
	<input type=hidden name="redir" value="${redirectUrl?if_exists}"><br>
	你的email地址:<br><input maxLength=60 size=24 name="email" id="email">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/codebush/go/?url=support/signup&thankyou=true">若还未注册请点此注册</a><br><br>
	你在代码丛林的注册密码:<br><input type=password maxLength=20 size=16 name="password" id="password">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	<a href="/codebush/support/password/reset">忘记密码了</a><br><br>
	<input type=checkbox name="remember" checked=true>&nbsp;
	<span class=pl>在这台电脑上记住我(一个月之内不用再登录)</span><br><br><br>
	<input type=submit value="进入" name="login" id="login"> 
</form>
</div>

<!-- 右半边 right side part -->
<div id="rightpart"><#include "/included/rightside_global.ftl"></div>
<!-- end 右半边  right side part -->
<!--end div id=main -->

<!-- 底部 footer  -->
<#include "/included/footer_global.ftl">
<!-- end  底部 footer  -->
</div><!--end div id=maxw -->
</body>
</html>